import { createI18n } from "vue-i18n";
import localZhCn from './language/zh-ch'
import localEn from './language/en'

const i18n = createI18n({
    legacy: false, //组合式API必须为false
    locale: 'zh-cn',
    fallbackLocale: 'zh-cn',
    messages: {
        'zh-cn': localZhCn,
        'en':localEn
    }
})
export default i18n